package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ActionFieldValueDaoImpl;
import com.asset.salesforce.domain.Action;
import com.asset.salesforce.domain.ActionFieldValue;
import com.asset.salesforce.domain.ConvertedAccount;

@Service
@Transactional(readOnly=true)
public class ActionFieldValueService {
	
	@Autowired
	private ActionFieldValueDaoImpl actionFieldValueDaoImpl;
	
	
	@Transactional(readOnly = false)
	public void addActionFieldValue(ActionFieldValue actionFieldValue){
		actionFieldValueDaoImpl.add(actionFieldValue);
	}
	@Transactional(readOnly = true)
	public ActionFieldValue getFieldValueById(ActionFieldValue actionFieldValue,Integer id){
		return actionFieldValueDaoImpl.getById(id,actionFieldValue);
	}
	@Transactional(readOnly = true)
	public List<ActionFieldValue> getAllFieldValue(ActionFieldValue actionFieldValue){
		return actionFieldValueDaoImpl.getAll(actionFieldValue);
	}
}
